import tensorflow as tf
saved_model_dir=''
inputs=["Placeholder"]
outputs=["final_result"]
converter = tf.lite.TFLiteConverter.from_frozen_graph('output_graph.pb',inputs,outputs)
#converter.optimizations = [tf.lite.Optimize.DEFAULT]
tflite_quant_model = converter.convert()
open("converted_model02.tflite", "wb").write(tflite_quant_model)